<%@ include file="/view/template/header.jsp"%>

	<div id="content">
    	<%@ include file="/view/ehr/ehr_common.jsp"%>
        		<div class="right-content">
			<div class="box">
				<h1><s:label key="label.search_results" cssClass="label_text"></s:label></h1>
				<h3><s:if test='replyMessage.message!="empty"'>
					<s:property value="replyMessage.message"/>
			</s:if></h3>
			<s:else>
<s:form action="search_patient_results_form">
<s:if test="patientDetailsList.size > 0">

<s:iterator value="patientDetailsList">
<%-- <s:property="patient.patientId"/> --%>
    <div class="sub_box"><!--
    	  <div class="left_box">
    	 
        	<s:radio list="{patient.patientId}" key="patientId"  cssClass="side_radio"></s:radio>
        </div>
        --><div class="con-part"><span><s:label key="label.patient.patientId" cssClass="label_text">  </s:label></span>
                <s:textfield name="patient.patientId" key="patient.patientId" class="input-text" readonly="true"></s:textfield>
                </div>             
                <div class="con-part"><span><s:label key="label.patient.givenName" cssClass="label_text">  </s:label></span>
                <s:textfield name="patient.givenName" key="patient.givenName" class="input-text" readonly="true"></s:textfield>
                </div>
                <div class="con-part"><span><s:label key="label.patient.familyName" cssClass="label_text">  </s:label></span>
                <s:textfield name="patient.familyName" key="patient.familyName" class="input-text" readonly="true"></s:textfield>
                </div>
                <div class="con-part"><span><s:label key="label.patient.nic" cssClass="label_text">  </s:label></span>
                <s:textfield name="patient.nicNo" key="patient.nicNo" class="input-text" readonly="true"></s:textfield>
                <!-- <input name="nic" type="text" id="nic" class="input-text" value="8633530V" disabled="disabled"> -->
                </div>
                <div class="con-part"><span><s:label key="label.patient.dob" cssClass="label_text">  </s:label></span>
                <s:textfield name="patient.birthTime" key="patient.birthTime" class="input-text" readonly="true"></s:textfield>
                </div>
                
                </div>
                <div class="button_bar3">
        	 
   							<div class="con-part">
									<s:url action="more_patient_details" var="more_patient_details_action">
										<s:param name="patient_id" value="%{patient.patientId}"/>
									</s:url>
									<a href="${more_patient_details_action}" class="green"><s:text name="label.viewMorePatientDetails"/></a>
								</div>   
					

					<s:url action="view_ward" var="view_ward_action">
						<s:param name="patient_id" value="%{patient.patientId}"/>
					</s:url>
					<a href="${view_ward_action}" class="green"><s:text name="label.admitPatient"/></a>
					
					
					<s:url action="update_patient" var="update_patient_action">
					<s:param name="patient_id" value="%{patient.patientId}"/>
				</s:url>
				<a href="${update_patient_action}" class="green"><s:text name="label.updatePatient"/></a>
					
				<!--<s:url action="back_to_search" var="back_to_search_action">
				</s:url>
				<a href="${back_to_search_action}" class="green"><s:text name="label.back"/></a>
				-->
				</div>
					 </s:iterator>
        	 </s:if>
</s:form>
</s:else>
			</div>
		</div>
    </div>

	<%@ include file="/view/template/footer.jsp"%>